package day_2022_4_to_7.day48;

import java.util.Scanner;

/**
 * 求最小公倍数
 * @author haomin
 * @date 2022/04/26 14:48
 **/
public class Day8_2_MinComMultiple {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        for(int i = 1;i <= b;i++){
            if((a * i) % b == 0){
                System.out.println(a * i);
                return;
            }
        }
    }
}